package com.bridge;

import com.bridge.iface.impl.BlueCircleImpl;
import com.bridge.iface.impl.RedCircleImpl;
import com.bridge.kind.Shape;
import com.bridge.kind.extend.Circle;

public class Test {
    public static void main(String[] args){
        // 通过不同的实现接口生成Shape抽象对象
        Shape redCircle = new Circle(4, 3.14f, new RedCircleImpl());
        Shape blueCircle = new Circle(4, 3.14f, new BlueCircleImpl());

        redCircle.draw();
        blueCircle.draw();
    }
}
